package com.xinghou.platform.dao.main;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.xinghou.platform.model.main.StoreImage;

/**
 * @author liuwei.wen
 *
 */
public interface StoreImageDAO {

	 public StoreImage getStoreImageList(Integer storeId,Integer imageTypeId)throws DataAccessException;
	 
	 /**
	  * imageTypeId为2时 表示查询全部
	  * @param storeId
	  * @param imageTypeId
	  * @param limit 为-1时查询全部
	  * @return
	  * @throws DataAccessException
	  */
	 public List<StoreImage> getStoreImageList(Integer storeId, Integer imageTypeId,int limit) throws DataAccessException;
	
	 /**
	  * 添加商铺图片信息
	  * @param storeImage
	  * @return
	  * @throws DataAccessException
	  */
	 public int saveStroeImage(StoreImage storeImage)throws DataAccessException;
	 
	 /**
	  * 查询上传的第一张图片
	  * @param storeid
	  * @return
	  * @throws DataAccessException
	  */
	 public StoreImage getFirstStoreImage(int storeid)throws DataAccessException;
}
